Optimal. Leaf size=104 \[ \frac{2 g \cot (e+f x) \sqrt{a \sec (e+f x)+a} \sqrt{g \sec (e+f x)}}{c f}-\frac{2 \sqrt{a} g^{3/2} \tanh ^{-1}\left (\frac{\sqrt{a} \sqrt{g} \tan (e+f x)}{\sqrt{a \sec (e+f x)+a} \sqrt{g \sec (e+f x)}}\right )}{c f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.278111, antiderivative size = 143, normalized size of antiderivative = 1.38, number of steps used = 5, number of rules used = 5, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {3964, 47, 63, 217, 203} \[ \frac{2 a g^{3/2} \tan (e+f x) \tan ^{-1}\left (\frac{\sqrt{c} \sqrt{g \sec (e+f x)}}{\sqrt{g} \sqrt{c-c \sec (e+f x)}}\right )}{\sqrt{c} f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}-\frac{2 a g \tan (e+f x) \sqrt{g \sec (e+f x)}}{f \sqrt{a \sec (e+f x)+a} (c-c \sec (e+f x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3964
Rule 47
Rule 63
Rule 217
Rule 203
Rubi steps
\begin{align*} \int \frac{(g \sec (e+f x))^{3/2} \sqrt{a+a \sec (e+f x)}}{c-c \sec (e+f x)} \, dx &=-\frac{(a c g \tan (e+f x)) \operatorname{Subst}\left (\int \frac{\sqrt{g x}}{(c-c x)^{3/2}} \, dx,x,\sec (e+f x)\right )}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=-\frac{2 a g \sqrt{g \sec (e+f x)} \tan (e+f x)}{f \sqrt{a+a \sec (e+f x)} (c-c \sec (e+f x))}+\frac{\left (a g^2 \tan (e+f x)\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{g x} \sqrt{c-c x}} \, dx,x,\sec (e+f x)\right )}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=-\frac{2 a g \sqrt{g \sec (e+f x)} \tan (e+f x)}{f \sqrt{a+a \sec (e+f x)} (c-c \sec (e+f x))}+\frac{(2 a g \tan (e+f x)) \operatorname{Subst}\left (\int \frac{1}{\sqrt{c-\frac{c x^2}{g}}} \, dx,x,\sqrt{g \sec (e+f x)}\right )}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=-\frac{2 a g \sqrt{g \sec (e+f x)} \tan (e+f x)}{f \sqrt{a+a \sec (e+f x)} (c-c \sec (e+f x))}+\frac{(2 a g \tan (e+f x)) \operatorname{Subst}\left (\int \frac{1}{1+\frac{c x^2}{g}} \, dx,x,\frac{\sqrt{g \sec (e+f x)}}{\sqrt{c-c \sec (e+f x)}}\right )}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=-\frac{2 a g \sqrt{g \sec (e+f x)} \tan (e+f x)}{f \sqrt{a+a \sec (e+f x)} (c-c \sec (e+f x))}+\frac{2 a g^{3/2} \tan ^{-1}\left (\frac{\sqrt{c} \sqrt{g \sec (e+f x)}}{\sqrt{g} \sqrt{c-c \sec (e+f x)}}\right ) \tan (e+f x)}{\sqrt{c} f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ \end{align*}
Mathematica [A] time = 1.53321, size = 162, normalized size = 1.56 \[ \frac{2 \cot \left (\frac{1}{2} (e+f x)\right ) \sqrt{a (\sec (e+f x)+1)} (g \sec (e+f x))^{3/2} \left (\sqrt{\sec (e+f x)} \sqrt{\sec (e+f x)+1}+\sqrt{\tan ^2(e+f x)} \left (\log (\sec (e+f x)+1)-\log \left (\sec ^{\frac{3}{2}}(e+f x)+\sqrt{\sec (e+f x)}+\sqrt{\tan ^2(e+f x)} \sqrt{\sec (e+f x)+1}\right )\right )\right )}{c f \sec ^{\frac{3}{2}}(e+f x) (\sec (e+f x)+1)^{3/2}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.342, size = 234, normalized size = 2.3 \begin{align*}{\frac{ \left ( -1+\cos \left ( fx+e \right ) \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2}}{fc \left ( \sin \left ( fx+e \right ) \right ) ^{4}} \left ( \cos \left ( fx+e \right ){\it Artanh} \left ({\frac{\cos \left ( fx+e \right ) +1-\sin \left ( fx+e \right ) }{2}\sqrt{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1}}} \right ) -\cos \left ( fx+e \right ){\it Artanh} \left ({\frac{\cos \left ( fx+e \right ) +1+\sin \left ( fx+e \right ) }{2}\sqrt{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1}}} \right ) -2\,\sin \left ( fx+e \right ) \sqrt{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1}}-{\it Artanh} \left ({\frac{\cos \left ( fx+e \right ) +1-\sin \left ( fx+e \right ) }{2}\sqrt{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1}}} \right ) +{\it Artanh} \left ({\frac{\cos \left ( fx+e \right ) +1+\sin \left ( fx+e \right ) }{2}\sqrt{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1}}} \right ) \right ) \sqrt{{\frac{a \left ( 1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }}} \left ({\frac{g}{\cos \left ( fx+e \right ) }} \right ) ^{{\frac{3}{2}}} \left ( \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1} \right ) ^{-{\frac{3}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.06821, size = 1322, normalized size = 12.71 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.80428, size = 855, normalized size = 8.22 \begin{align*} \left [\frac{\sqrt{a g} g \log \left (\frac{a g \cos \left (f x + e\right )^{3} - 7 \, a g \cos \left (f x + e\right )^{2} + 4 \, \sqrt{a g}{\left (\cos \left (f x + e\right )^{2} - 2 \, \cos \left (f x + e\right )\right )} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sqrt{\frac{g}{\cos \left (f x + e\right )}} \sin \left (f x + e\right ) + 8 \, a g}{\cos \left (f x + e\right )^{3} + \cos \left (f x + e\right )^{2}}\right ) \sin \left (f x + e\right ) + 4 \, g \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sqrt{\frac{g}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{2 \, c f \sin \left (f x + e\right )}, -\frac{\sqrt{-a g} g \arctan \left (\frac{2 \, \sqrt{-a g} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sqrt{\frac{g}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right )}{a g \cos \left (f x + e\right )^{2} - a g \cos \left (f x + e\right ) - 2 \, a g}\right ) \sin \left (f x + e\right ) - 2 \, g \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sqrt{\frac{g}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{c f \sin \left (f x + e\right )}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]